partial class VEC_LENGTH_MIXIN{ET<$REAL_NUMBER{ET},VT<$VEC{ET,VEC}} |
---|
**** |
_ NOTE most of the these definitions are NOT good for complex numbers. |
VEC | VECD |
angle_with(arg:SAME):ET |
---|
bounded_distance_to_squared(arg:SAME,sbnd:ET):ET |
---|
cosine_angle_with(arg:SAME):ET |
---|
**** | cos theta = a dot b / |a|*|b| |
distance_to(arg:SAME):ET |
---|
distance_to_squared(arg:SAME):ET |
---|
**** | we could implement in terms of other functions but I will hand-write for speed. |
dot(arg:SAME):ET |
---|
inplace_normalized |
---|
length:ET |
---|
length_one:ET |
---|
length_squared:ET |
---|
length_zero:ET |
---|